import {fork} from 'redux-saga/effects';
//import * as cameraSaga from './cameraSaga';

type sagaT = () => Generator<any, void, unknown>;
const combinedSagas: sagaT[] = [];

function* rootSaga(action: any) {
  for (const sagas of combinedSagas) {
    for (const saga of Object.values(sagas)) {
      yield fork(saga);
    }
  }
}

export default rootSaga;
